//@Author: wulinlin
//@Description:
//@File:  interactive_repo
//@Version: 1.0.0
//@Date: 2024/04/17 22:34

package repo

import "context"

type InteractiveRepo interface {
	//
	// IncrReadCnt
	//  @Description: 为某个资源新增一个阅读量
	//
	IncrReadCnt(ctx context.Context, bizId int64, biz string) error
	//
	// IncrLikeCnt
	//  @Description: 为某个资源新增一个点赞量
	//  @param ctx
	//  @param bizId
	//  @param biz
	//  @param uid
	//  @return error
	//
	IncrLikeCnt(ctx context.Context, bizId int64, biz string, uid int64) error
	DecrLikeCnt(ctx context.Context, bizId int64, biz string, uid int64) error
	//
	// IncrCollectCnt
	//  @Description: 新增收藏
	//
	IncrCollectCnt(ctx context.Context, bizId int64, biz string, cid, uid int64) error
	DecrCollectCnt(ctx context.Context, bizId int64, biz string, cid, uid int64) error
}

type interactiveRepo struct {
}
